package com.auto.survey.measurecontroller

object MeasureConstants {

    // 任务ID前缀
    const val TASK_PREFIX_INIT = "INIT_"
    const val TASK_PREFIX_ROUGH_POSITION = "ROUGH_POSITION_"
    const val TASK_PREFIX_PRECISE_SEARCH = "PRECISE_SEARCH_"
    const val TASK_PREFIX_CONFIRM_POSITION = "CONFIRM_POSITION_"
    const val TASK_PREFIX_MEASURE = "MEASURE_"

    const val TASK_PREFIX_CHANGE = "CHANGE_"
    const val TASK_PREFIX_POSITION = "POSITION_"
    const val TASK_PREFIX_SINGLE_MEASURE = "SINGLE_MEASURE_"

    // 延迟时间常量（毫秒）
    const val DELAY_INSTRUMENT_CHECK = 500L
    const val DELAY_AFTER_SWITCH_FACE = 2000L
    const val DELAY_AFTER_POSITIONING = 1000L

    // 角度转换系数（弧度转秒）
    const val RAD_TO_SEC = (180 / Math.PI) * 3600

    // 默认搜索角度（弧度）
    const val DEFAULT_SEARCH_HZ = 0.01745  // 约1度
    const val DEFAULT_PRECISE_SEARCH_HZ = 0.001745  // 约0.1度
    const val TOTAL_LOOPS = 2 //测回数
}